home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / sys / amiga / programmer / 3922 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  2.4 KB

  1. Path: rubens.telebyte.nl!news
  2. From: zaphod@telebyte.nl (Zaphod)
  3. Newsgroups: comp.sys.amiga.networking,comp.sys.amiga.programmer
  4. Subject: Re: Network Programming with AmiTCP
  5. Date: 14 Feb 1996 21:35:52 GMT
  6. Organization: Telebyte
  7. Message-ID: <2036.6618T1349T1143@telebyte.nl>
  8. References: <9602101731.AA001y3@iceberg.demon.co.uk>
  9. NNTP-Posting-Host: nm-0-24.telebyte.nl
  10. X-Newsreader: THOR 2.2 (Amiga;TCP/IP) *UNREGISTERED*
  11.  
  12. In article "Re: Network Programming with AmiTCP" (John Shardlow) <john@iceberg.demon.co.uk> wrote:
  13.  
  14. >Jeff Shepherd (jsshephe@math.uwaterloo.ca) wrote:
  15.  
  16. >: Be aware that it does not work as of ixemul.library version 42.0. You can
  17. >: either recompile it (the source is included) or wait until ixemul.library
  18. >: version 43.0.
  19.  
  20. >Thanks for both replies. I got the gcc version of the SDK but I still get the
  21. >following link errors. I expect I'm doing something obvious wrong, maybe you
  22. >can spot it. It has been some time since I programmed an Amiga (I'm a Unix
  23. >programmer at the moment).
  24.  
  25. >9.Workbench3.0:AmiTCP/usr/john/code> gcc whois.c -lamitcp -o whois
  26. >ram:cc6103441.o: Undefined symbol _gethostbyname referenced from text segment
  27. >ram:cc6103441.o: Undefined symbol _socket referenced from text segment
  28. >ram:cc6103441.o: Undefined symbol _bind referenced from text segment
  29. >ram:cc6103441.o: Undefined symbol _getservbyname referenced from text segment
  30. >ram:cc6103441.o: Undefined symbol _connect referenced from text segment
  31.  
  32.  
  33. John,
  34.  
  35. I encountered the same problems when I ported CircleMUD 3.0 to the Amiga. It
  36. is important that you use the -O2 option. Ixemul.library support the AS25..
  37. (or something like that :) so to use the AmiTCP functions you must make
  38. sure to use inline functions (hence the -O2 options wich assures that
  39. inlines are used). Further you must include <bsdsocket.h> in every file
  40. that calls socket functions. Also you have to add some defines and link with
  41. some extra libs. Here are the relevant compile flags and linker options I
  42. used for the CircleMUD port.
  43.  
  44. compileflags: -O2 -D__AMITCP__ -DNO_INLINE_STDARG -DOLD -Wall
  45. linker options: -lc -lamitcp -lamiga -lauto
  46.  
  47. I used the old version. If you want to use the new names (e.g Connect in
  48. stead of connect ect.) you'll have to remove the -DOLD options and link
  49. with -lnewamitcp 
  50.  
  51. Hope this helps :) Grtz Zaphod.
  52.  
  53. [*- The most exciting phrase to hear in science, the one that heralds -*]
  54. [*- new discoveries, is not Eureka! (I found it!) but That's funny... -*]
  55.  
  56.